package com.example.travel_front.Model;

public class PopularPlace {
    private String imageUrl;
    private String title;
    // 可以添加更多属性，例如地址、描述、评分等
    private int likes;

    // 构造函数
    public PopularPlace(String imageUrl, String title,int likes) {
        this.imageUrl = imageUrl;
        this.title = title;
        this.likes = likes;
    }

    // Getter 和 Setter 方法
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    // 根据需要添加其他 Getter 和 Setter 方法

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }
}
